package com.luhuiguo.cms.shared.event;

import java.util.List;

import com.google.gwt.event.shared.GwtEvent;

public class ArticlesDeletedEvent extends GwtEvent<ArticlesDeletedEventHandler> {

    public static Type<ArticlesDeletedEventHandler> TYPE = new Type<ArticlesDeletedEventHandler>();

    private final List<Long> articles;

    public ArticlesDeletedEvent(List<Long> articles) {
        this.articles = articles;
    }

    public List<Long> getArticles() {
        return articles;
    }

    @Override
    public Type<ArticlesDeletedEventHandler> getAssociatedType() {
        return TYPE;
    }

    @Override
    protected void dispatch(ArticlesDeletedEventHandler handler) {
        handler.onArticlesDeleted(this);
    }
}
